package cn.cqone.crm.query;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class CustomerQuery extends BaseQuery{

    private Date date1;

    private Date date2;

    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    public Date getDate1() {
        return date1;
    }

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    public void setDate1(Date date1) {
        this.date1 = date1;
    }

    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    public Date getDate2() {
        return date2;
    }

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    public void setDate2(Date date2) {
        this.date2 = date2;
    }
}
